#include <stdio.h>
#include <stdlib.h>
#include <spu_intrinsics.h>
#include <spu_mfcio.h>

typedef union {
  float f;
  int i;
} Number;

int main( unsigned long long spe, unsigned long long argp, unsigned long long envp )
{
  Number n;
  n.f = 5.786439;

  printf("I'm sending the PPE %f, which is %d if interpreted as decimal\n", n.f, n.i);
  spu_write_out_mbox(n.i);

  return 0;
}
